package com.ubxtech.db.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 必须放在controller或者client,要不然aspect执行完会清空这个标志的值,导致错误
 * @author Victor.Xiao
 * @since 2023-08-14 10:25
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface IgnoreTenant {

    /**
     * true:不租户隔离 false租户隔离,默认true
     */
    boolean isIgnore() default true;
}